import log from '@dfeidao/atom-nodejs/logger/log';
import { IncomingHttpHeaders } from 'http';
import query from '@dfeidao/atom-nodejs/db/query';
import { systemid,productid} from '../../atom/config';
import doc_code from '@dfeidao/atom-nodejs/msg/doc-code';

interface Message {

}



export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders){
const r = await doc_code('action_id', 'session_id', 'systemid', 'BM0017539', '', 1);
const re = r.result
	const { prepare, exec } = query(action_id,session_id,systemid);
prepare('work_order', ['cust_sat','work_order_status'], {productid},200, 1, [], []);
const [d1] = await exec();
return{d1,re};
}
